package com.ruoyi.service.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.service.mapper.ServiceNurseMapper;
import com.ruoyi.service.domain.ServiceNurse;
import com.ruoyi.service.service.IServiceNurseService;

/**
 * 院方账号表Service业务层处理
 * 
 * @author ZDL
 * @date 2024-11-19
 */
@Service
public class ServiceNurseServiceImpl implements IServiceNurseService 
{
    @Autowired
    private ServiceNurseMapper serviceNurseMapper;

    /**
     * 查询院方账号表
     * 
     * @param nurseId 院方账号表主键
     * @return 院方账号表
     */
    @Override
    public ServiceNurse selectServiceNurseByNurseId(Long nurseId)
    {
        return serviceNurseMapper.selectServiceNurseByNurseId(nurseId);
    }
    @Override
    public ServiceNurse selectServiceNurseByNurseTelephone(String telephone)
    {
        return serviceNurseMapper.selectServiceNurseByNurseTelephone(telephone);
    }

    /**
     * 查询院方账号表列表
     * 
     * @param serviceNurse 院方账号表
     * @return 院方账号表
     */
    @Override
    public List<ServiceNurse> selectServiceNurseList(ServiceNurse serviceNurse)
    {
        return serviceNurseMapper.selectServiceNurseList(serviceNurse);
    }

    /**
     * 新增院方账号表
     * 
     * @param serviceNurse 院方账号表
     * @return 结果
     */
    @Override
    public int insertServiceNurse(ServiceNurse serviceNurse)
    {
        return serviceNurseMapper.insertServiceNurse(serviceNurse);
    }

    /**
     * 修改院方账号表
     * 
     * @param serviceNurse 院方账号表
     * @return 结果
     */
    @Override
    public int updateServiceNurse(ServiceNurse serviceNurse)
    {
        return serviceNurseMapper.updateServiceNurse(serviceNurse);
    }

    /**
     * 批量删除院方账号表
     * 
     * @param nurseIds 需要删除的院方账号表主键
     * @return 结果
     */
    @Override
    public int deleteServiceNurseByNurseIds(Long[] nurseIds)
    {
        return serviceNurseMapper.deleteServiceNurseByNurseIds(nurseIds);
    }

    /**
     * 删除院方账号表信息
     * 
     * @param nurseId 院方账号表主键
     * @return 结果
     */
    @Override
    public int deleteServiceNurseByNurseId(Long nurseId)
    {
        return serviceNurseMapper.deleteServiceNurseByNurseId(nurseId);
    }
}
